package cn.cvs.service;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    SysUser login(String account,String password);
    List<SysUser> list(Integer pageIndex, Integer pageSize, String realName, Integer roleId);
    int add(SysUser sysUser);
    int count(String realName);

    int delete(Integer id);

    SysUser getUserById(String id);

    int update(SysUser sysUser);

    SysUser getAccountExist(String account);
}
